Automated Presentation of directory src/tutorials/custEducation/opengl2/examples/texture/

HUB | Up | Download | Pheedbak | Tree | Topic | A-Z | Search | Hot | New


to compile programs in the above-indicated sub- directories/trees,
one must load libglut. inst-able images of GLUT v3.1 are located at
toolbox/src/exampleCode/opengl/GLUT/inst/


README file from "texture" directory

<
   ~opengl2/examples/texture README

            Copyright 1993, 1996, Silicon Graphics,  Inc.
            Technical Education Development
            All Rights Reserved.

	    A collection of programs demonstrating basic texture
	    mapping using OpenGL.


   texture.c
        Reads in a texture from a .rgb file, sets up the texture and the 
	texture environment, then applies the texture to a rectangular 
	polygon using explicit texture coordinates.

	Escape key - exits the program
   

   mipmap.c
	Reads in a texture from a .rgb file, uses the opengl utility 
	library routine gluBulid2dMipmaps() to scale and load mipmaps 
	for a single texture image, then applies the texture to a 
	rectangular polygon using explicit texture coordinates.

	<a> key		- pause/restart movement
	<m> key		- cycle minification filter
	<M> key		- cycle Magnification filter
	<R> key		- reset image to starting position
	Escape Key	- exit program


   wrap.c
	This program reads in a single image from a .rgb file, and
	creates and load mipmaps of the image into texture memory. It
	sets the texture up to clamp in the s dimension and repeat in
	the t dimension, and then applies the texture to a rectangular
	polygon using explicit texture coordinates outside the range
	[0,1].

	<a> key		- pause/restart movement
	Escape Key	- exit program


   borders.c:  demonstrates how texture borders are used when textures wrap.

	It specifies a border color of red which is averaged with the
	texture edge when the texture is clamped, and the filtering
	is not GL_NEAREST.

	<a> key		- toggle animation on/off
	Escape Key	- exit program


   texenv.c
	This program demonstrates the texture environment modes.  
	It reads in a texture from a .rgb(a) file, and
	applies it as a texture to a rectangular polygon using explicit
	texture coordinates.

	The enironment modes can be changed interactively.

	<c> Key 	- toggle polygon color between white/red 
	<e> key		- cycle through environment modes
	Escape key	- exit the program


   swim.c
 	This program demonstrates how the alpha values in a texture
 	can be combined with the texture environment to make textures
	with tranparent areas.

	alphaFunc and blending are used to make the parts of the
	rectangle outside the fish image transparent wherever the
	fish.rgba file has low alpha values.

	<a> Key         - toggle alpha test on/off
	<b> Key         - toggle blending on/off
	<e> Key 	- cycle through texture environment modes
	<s> Key         - toggle swimming on/off
	Escape key	- exit the program



Files of interest from "src/tutorials/custEducation/opengl2/examples/texture" directory

Source

Documentation

Images

Reference


Select any combo of files you'd like to send yourself a compressed tar image of. Executables/scripts are indicated with a trailing `*' character. (Depending upon the browser, it may be necessary to hold down the Ctrl key to select/deselect disjoint items.) a compressed tar image of the above-selected items.
OR, ...
a compressed tar image of the entire texture directory.

Copyright © 1995-96, Silicon Graphics, Inc.